package com.student.system.controller;


import com.student.system.service.StudentService;
import com.student.system.service.impl.StudentServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

@WebServlet("/student/*")
public class StudentServlet extends BaseServlet{
    private StudentService studentService = new StudentServiceImpl();



    //根据方法名称处理这个方法
    ///user?=method=doRegister
    public void doRegister(HttpServletRequest req, HttpServletResponse resp){
        studentService.doRegister(req,resp);
    }
    public void doMessage(HttpServletRequest req, HttpServletResponse resp){
        studentService.doMessage(req,resp);
    }
    public void doLogin(HttpServletRequest req, HttpServletResponse resp){
        studentService.doLogin(req,resp);
   }
    public void checkLoginId(HttpServletRequest req, HttpServletResponse resp){
        studentService.checkLoginId(req,resp);

    }
    public void StudentScoreMessage(HttpServletRequest req, HttpServletResponse resp){
        studentService.StudentScoreMessage(req,resp);
    }
}
